import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)
// import { mine } from '../Api/mine/mine'

import { UPDATA } from '../store/mutations-type.js'

export default new Vuex.Store({
  state: {
    name:'yyf',
    arr:[
      {'hollit':'sleep'},
      {'jianjie':'gohone'},
    ]
  },
  mutations: {
    [UPDATA]:function(state,value) {
      console.log(state,value,'state,value');
        state.name = value
    },
    cahnge(state,data ) { 
      console.log(state,data,'98');
    }
  },
  actions: {
      
      
  },
  modules: {
  }
})
